package com.tubi.huanchongliu;

import java.io.*;

public class huanchongliu1 {
    public static void main(String[] args) throws IOException {
        //字节缓冲输入流
        BufferedInputStream bis = new BufferedInputStream(new FileInputStream("/Users/ronglei/Desktop/学习/a.txt"));

        //创建字节缓冲输出流
        BufferedOutputStream bos = new BufferedOutputStream( new FileOutputStream("test-IO/a.txt"));

        int b;
        while ((b = bis.read())!=-1){
            bos.write(b);
        }
        bis.close();
        bos.close();
    }
}
